import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/home')
  },
  {
    path: '/logs',
    name: 'Logs',
    component: () => import('../views/logs')
  },
  {
    path: '/blog',
    name: 'Blog',
    component: () => import('../views/blogDetail')
  },
  {
    path: '/video',
    name: 'Video',
    component: () => import('../views/videoDetail')
  }
]

const router = new VueRouter({
  routes
})

export default router
